package com.systemdevelopment.mainproject.Model;
        import java.sql.Connection;
        import java.sql.DriverManager;
        import java.sql.SQLException;
/**
 * 存放数据库相关参数的类
 */
public class DataBaseManager {
    static String url="jdbc:oracle:thin:@127.0.0.1:1521:library2";
    //static String url="jdbc:oracle:thin:@192.168.152.130:1521:library";  //本地有数据库就可以用这个连自己的数据库
    //String url="jdbc:oracle:thin:@192.168.3.103:1522:library";    //远程连接陶毅的数据库
    static String user="LIB";
    static String password="lib";
    static Connection conn=null;
    public static Connection build_conn() throws SQLException {

            conn = DriverManager.getConnection(url, user, password);// 连接数据库
            System.out.println(conn);

        return conn;
    }
}
